<?php

namespace app\controller;
use think\Request;
use app\controller\BaseController;
use app\service\PublishService;

class Publish extends BaseController{
    private $publishService;

    public function __construct() {
        $this->publishService=new PublishService();

    }

    //检查版本号
    public function checkVersionNumber(Request $input){
        $result=$this->publishService->checkVersionNumber($input);
        return $result;
    }
    //上传包
    public function updatePackage(Request $input){

        $result=$this->publishService->updatePackage($input);
        return $result;
    }
}
